import java.util.HashMap;
import java.util.Scanner;

public class StudentGrades {

    private HashMap<String, Integer> grades = new HashMap<>();

       public void recordGrade(String name, int score) {
        grades.put(name, score);
        System.out.println("成绩已记录：" + name + " - " + score);
    }

      public void queryGrade(String name) {
        if (grades.containsKey(name)) {
            System.out.println(name + " 的成绩是：" + grades.get(name));
        } else {
            System.out.println("未找到 " + name + " 的成绩");
        }
    }